package com.mtf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: mtf_stock
 * @Author: jeecg-boot
 * @Date:   2023-11-02
 * @Version: V1.0
 */
@Data
@TableName("mtf_stock")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mtf_stock对象", description="mtf_stock")
public class MtfStock implements Serializable {
    private static final long serialVersionUID = 1L;

	/**编号*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号")
    private Integer id;
	/**标识*/
    @ApiModelProperty(value = "标识")
    private String identity;
	/**库存数量*/
    @ApiModelProperty(value = "库存数量")
    private Integer stockNum;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**创建人id*/
    @ApiModelProperty(value = "创建人id")
    private String createBy;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createUsername;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**修改人id*/
    @ApiModelProperty(value = "修改人id")
    private String updateBy;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateUsername;
	/**是否有效 选项：0=有效 1=无效*/
    @ApiModelProperty(value = "是否有效 选项：0=有效 1=无效")
    private Integer status;
	/**是否删除 选项：0=未删除 1=已删除*/
    @ApiModelProperty(value = "是否删除 选项：0=未删除 1=已删除")
    @TableLogic
    private Integer delFlag;
	/**商品id*/
    @ApiModelProperty(value = "商品id")
    private String productIdentity;
}
